Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] fixed unix domain socket bugs in auto-push. #256

Merged

Conversation

vacing
Copy link

@vacing vacing commented Jan 7, 2024

unix socket name will conflict when gracefully update, because nginx master will recount the index of process

unix socket name will conflict when gracefully update, because nginx master will recount the index
of process
@@ -197,9 +198,10 @@ ngx_rtmp_auto_push_init_process(ngx_cycle_t *cycle)
return NGX_ERROR;
}
saun->sun_family = AF_UNIX;
pid = ngx_getpid();
*ngx_snprintf((u_char *) saun->sun_path, sizeof(saun->sun_path),
"%V/" NGX_RTMP_AUTO_PUSH_SOCKNAME ".%i",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The process id should be printed by "%P".

@winshining winshining changed the title [fix]fix auto push unix socket bug [fix] fixed auto push unix socket bug. Jan 7, 2024
@winshining winshining changed the title [fix] fixed auto push unix socket bug. [fix] fixed unix domain socket bugs in auto-push. Jan 7, 2024
@winshining winshining merged commit c99270f into winshining:master Jan 7, 2024
1 check passed
@vacing vacing deleted the nrm-bugfix-autopush-240107 branch January 7, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants